/*******************************************
 * Copyright 2007 Aphrodite Framework for javaME .
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * Email : owner@aphroditeme.dev.java.net
 * Contributors:
 *     Kent Elton - initial API and implementation
 *******************************************/

package com.aphrodite.extns.bluetooth;

/**
 * Represents Data that can be sent to a BT client/server
 * 
 * @author kentelt
 * 
 */
public final class BTData {
	/**
	 * Content
	 */
	public byte[] data;

	/**
	 * The MObexServer owner of the request
	 */
	private BTServer mObexServer;

	/**
	 * Name of the object
	 */
	public String name;

	/**
	 * Mime type
	 */
	public String type;

	public BTData(BTServer mObexServer, String name) {
		this(name, null, null);
		this.mObexServer = mObexServer;
	}

	/**
	 * Create a object with the specified values
	 * 
	 * @param name
	 *            Name of the object
	 * @param type
	 *            mime type of the object
	 * @param data
	 *            object content
	 */
	public BTData(String name, String type, byte[] data) {
		this.name = name;
		this.type = type;
		this.data = data;
	}
}
